package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 * @TableName lecture
 */
@TableName(value ="lecture")
@Data
public class Lecture implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 讲座标题
     */
    private String title;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 讲座内容
     */
    private String content;

    /**
     * 讲师
     */
    private String lecturer;

    /**
     * 参与人数限制
     */
    private Integer participantLimit;

    /**
     * 0:未开始, 1:进行中, 2:已结束, 3:已取消
     */
    private Integer lectureStatus;

    /**
     * 备注
     */
    private String remark;

    /**
     * 关联的教室ID
     */
    private Long classroomId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}